Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run the libraries on a second web runtime
This PR prepares the packages for a React 19 web app that has no Expo
Router and no react-native-web. It lands in steps, one commit each.
1.
@rootnative/seo/web: aPageHeadthat a server can renderPageHeadfrom/domwrites the head in an effect. An effect never runson a server, so a page that a server renders, or a build step prerenders,
has no head in its HTML.
The new entry renders the same
toHeadTagsrecords as<title>,<meta>and
<link>elements. React 19 moves them into<head>on the server andin the browser. The JSON-LD stays in the page body.
/domPageHead:PageMeta,site,active.<title>and the page-slot tags of the HTML template out ofthe head while the page is on, and puts them back when it goes.
must pass
active={false}./domstays the choice for an app that stacksscreens with no
activeprop.null.No breaking change. No peer range moves.
Tests
webproject: the head matches the/domhead for onePageMeta, tagschange and go on unmount, template tags go and come back,
active={false}renders no tag.
nativeproject:renderToStringhas the title, the description, thecanonical link, the
hreflanglinks and the JSON-LD.To check on CI
api:check: I added./webtoapi-surface.jsonby hand.Next steps in this PR
Slider,TextField,LinearProgressandCarousel.